//
// convert.cpp for abstractVM in /home/morel_t//Rendu/cplusplus/abstract_VM
//
// Made by thomas morel
// Login   <morel_t@epitech.net>
//
// Started on  Wed Feb 15 15:34:10 2012 thomas morel
// Last update Thu Feb 16 15:10:48 2012 thomas morel
//

#ifndef CONVERT_HPP_
# define CONVERT_HPP_

#include <string>
#include <sstream>

template<typename T>
T	toNumber(const std::string &src)
{
  T			value;
  std::stringstream	stream(src);

  stream >> value;
  return (value);
}

#endif /* !CONVERT_HPP_ */
